<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
 <base href="<%=request.getContextPath()%>/">
    <meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="Styles/bootstrap.min.css" />
<title>Insert title here</title>
</head>
<body>
  &nbsp&nbsp&nbsp&nbsp<shiro:hasRole name="admin">
						<a href="wp/preAddFromEmp">从员工的报表添加</a><br/>
					</shiro:hasRole><hr/>
      &nbsp&nbsp&nbsp&nbsp  <a href="wp/preAdd">添加</a>   <hr/>
<div class="container-fluid">
	<div class="row-fluid">
		<div class="span12">
			<ul class="unstyled">
				<c:forEach items="${list }" var="wp">
      				<li><b class="tip"></b><a target="Conframe" href="wp/detail/${wp.wpId }">${wp.title }</a>&nbsp&nbsp&nbsp&nbsp<a href="wp/delete/${wp.wpId }">删除</a>&nbsp&nbsp<a href="wp/preUpdate/${wp.wpId }">修改</a></li>
    	        </c:forEach>
			</ul>
		</div>
	</div>
</div>
<div class="row-fluid">
		<div class="span12">
			<div class="pagination">
				<ul>
					<li>
						<a href="wp/list?page=${page.firstPage}">第一页</a>
					</li>
					<li>
						<a href="wp/list?page=${page.prePage}">上一页</a>
					</li>
					<c:forEach var='i' begin="1" end="${page.pages }" step="1">
        	 		<li>
						<a href="wp/list?page=${i }">${i }</a>
					</li>
        			</c:forEach>
					<li>
						<a href="wp/list?page=${page.nextPage}">下一页</a>
					</li>
					<li>
						<a href="wp/list?page=${page.lastPage}">最后页</a>
					</li>
				</ul>
			</div>
		</div>
	</div>
</body>
</html>




